/*
#define _CRT_SECURE_NO_WARNINGS

#include<stdio.h>

unsigned GetSnoopResult(unsigned Address, char Operation);

int printcacheline();


int printcacheline()
{
	int a;

	for(int s = 0; s < SETS; SETS++)
	{
		for (int w = 0; w < WAYS; WAYS++)
		{
			a = get_Line_Status(s, w);
			if (a = !0)
				printf(" CACHE LINE[%d] STATUS	= %d\n", w, a);
				printf(" CACHE LINE[%d] CONTENT	= %x\n", w, L2Cache[s][w]);
			
		}

	}
		
			
}


unsigned Get_Snoop_Result(unsigned Address, char Operation)
{
	int Snoopresult=0;
	unsigned _SnoopBits;
	
	_SnoopBits = (Address & 3);
	
	if (_SnoopBits == 0)
		Snoopresult = 0;
	else if (_SnoopBits == 1 || _SnoopBits == 2)
		Snoopresult = 1;
	else if (_SnoopBits == 3)
		Snoopresult = 2;

	printf(" \n SNOOP BITS		= %d \n RETUREND RESULT	= %d ", _SnoopBits, Snoopresult);
	return Snoopresult;


}

void main()
{
	unsigned a,b;
	char c = 'i';

	printf(" ENTER ADDRESS		= ");
	scanf("%x", &a);

	printf(" PASSED VALUE		= %x",a);
	b = Get_Snoop_Result(a, c);

	printf(" \n GETSNOOP RESULT	= %d", b);
	getch();

}
*/